package itsm.isperp.module.entity.bpm;

import itsm.isperp.framework.domain.IBean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 流程节点的人员配置
 * 
 * <p>
 * 节点类型：
 * <ul>
 * <li>0: 提交人</li>
 * <li>1: 特定角色</li>
 * <li>2: 特定成员</li>
 * <li>3: 表单内成员帐号</li>
 * <li>4: 特定部门下所有成员</li>
 * <li>5: 特定部门的领导</li>
 * <li>6: 成员属性</li>
 * </ul>
 * </p>
 * 
 * @author lizx
 * @date 2013-4-25
 */
@Entity
@Table(name = "bpm_node_user")
public class BpmNodeUser implements IBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	protected String id;
	@Column
	protected String bpmNodeSettingId;
	@Column
	protected short assignType;
	@Column
	protected String cmpIds;
	@Column
	protected String cmpNames;
	@Column
	protected short compType;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getBpmNodeSettingId() {
		return bpmNodeSettingId;
	}

	public void setBpmNodeSettingId(String bpmNodeSettingId) {
		this.bpmNodeSettingId = bpmNodeSettingId;
	}

	/**
	 * <ul>
	 * <li>0: 提交人</li>
	 * <li>1: 特定角色</li>
	 * <li>2: 特定成员</li>
	 * <li>3: 表单内成员帐号</li>
	 * <li>
	 * 4: 特定部门下所有成员</li>
	 * <li>5: 特定部门的领导</li>
	 * <li>6: 成员属性</li>
	 * </ul>
	 * 
	 * @return
	 */
	public short getAssignType() {
		return assignType;
	}

	public void setAssignType(short assignType) {
		this.assignType = assignType;
	}

	public String getCmpIds() {
		return cmpIds;
	}

	public void setCmpIds(String cmpIds) {
		this.cmpIds = cmpIds;
	}

	public String getCmpNames() {
		return cmpNames;
	}

	public void setCmpNames(String cmpNames) {
		this.cmpNames = cmpNames;
	}

	public short getCompType() {
		return compType;
	}

	public void setCompType(short compType) {
		this.compType = compType;
	}

}
